﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
<head>
<link rel="stylesheet" type="text/css" href="${ctx}/static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="${ctx}/static/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="${ctx}/static/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css" href="${ctx}/static/h-ui.admin/css/style.css" />
<link rel="stylesheet" type="text/css" href="${ctx}/lib/Hui-iconfont/1.0.8/iconfont.css" />
<title>云算盘 v3.1</title>
</head>
<body>
	<header class="navbar-wrapper">
		<div class="navbar navbar-fixed-top">
			<div class="container-fluid cl">
				<span class="logo navbar-logo f-l mr-10 hidden-xs">云算盘</span>
				<nav class="nav navbar-nav">
					<ul class="cl">
						<li class="dropDown dropDown_hover"><a href="javascript:;" class="dropDown_A">
								<i class="Hui-iconfont">&#xe600;</i> 新增 <i class="Hui-iconfont">&#xe6d5;</i>
							</a>
							<ul class="dropDown-menu menu radius box-shadow">
								<li><a href="javascript:;" onclick="member_add('添加用户','member-add.html','','510')">
										<i class="Hui-iconfont">&#xe60d;</i> 用户
									</a></li>
							</ul></li>
					</ul>
				</nav>
				<nav id="Hui-userbar" class="nav navbar-nav navbar-userbar hidden-xs">
					<ul class="cl">
						<li></li>
						<li class="dropDown dropDown_hover"><a href="#" class="dropDown_A">
								${currentUser.username }<i class="Hui-iconfont">&#xe6d5;</i>
							</a>
							<ul class="dropDown-menu menu radius box-shadow">
								<li><a href="javascript:;" onClick="myselfinfo()">个人信息</a></li>
								<li><a href="#" class="logout">退出</a></li>
							</ul></li>
						<li id="Hui-msg"><a href="#" title="消息">
								<span class="badge badge-danger"></span><i class="Hui-iconfont" style="font-size: 18px">&#xe68a;</i>
							</a></li>
						<li id="Hui-skin" class="dropDown right dropDown_hover"><a href="javascript:;" class="dropDown_A" title="换肤">
								<i class="Hui-iconfont" style="font-size: 18px">&#xe62a;</i>
							</a>
							<ul class="dropDown-menu menu radius box-shadow">
								<li><a href="javascript:;" data-val="default" title="默认（黑色）">默认（深蓝）</a></li>
								<li><a href="javascript:;" data-val="blue" title="蓝色">蓝色</a></li>
								<li><a href="javascript:;" data-val="green" title="绿色">绿色</a></li>
								<li><a href="javascript:;" data-val="red" title="红色">红色</a></li>
								<li><a href="javascript:;" data-val="yellow" title="黄色">黄色</a></li>
								<li><a href="javascript:;" data-val="orange" title="橙色">橙色</a></li>
								<li><a href="javascript:;" data-val="danlan" title="白色">白色</a></li>
							</ul></li>
					</ul>
				</nav>
			</div>
		</div>
	</header>
	
	<section>
		<div id="iframe_box" class="Hui-article">
			<div class="show_iframe">
				<iframe scrolling="yes" frameborder="0" src="${ctx}/login/toztWelcome"></iframe>
			</div>
		</div>
	</section>

	<!--_footer 作为公共模版分离出去-->
	<script type="text/javascript" src="${ctx}/lib/jquery/1.9.1/jquery.min.js"></script>
	<script type="text/javascript" src="${ctx}/lib/layer/2.4/layer.js"></script>
	<script type="text/javascript" src="${ctx}/static/h-ui/js/H-ui.min.js"></script>
	<script type="text/javascript" src="${ctx}/static/h-ui.admin/js/H-ui.admin.js"></script>
	<!--/_footer 作为公共模版分离出去-->

	<!--请在下方写此页面业务相关的脚本-->
	<script type="text/javascript" src="${ctx}/lib/jquery.contextmenu/jquery.contextmenu.r2.js"></script>
	<script type="text/javascript">
		/*个人信息*/
		function myselfinfo () {
			layer.open({
				type : 1, area : [ '300px', '200px' ], fix : false, //不固定
				maxmin : true, shade : 0.4, title : '查看信息', content : '<div>管理员信息</div>'
			});
		}

		/*资讯-添加*/
		function article_add (title, url) {
			var index = layer.open({
				type : 2, title : title, content : url
			});
			layer.full(index);
		}
		/*图片-添加*/
		function picture_add (title, url) {
			var index = layer.open({
				type : 2, title : title, content : url
			});
			layer.full(index);
		}
		/*产品-添加*/
		function product_add (title, url) {
			var index = layer.open({
				type : 2, title : title, content : url
			});
			layer.full(index);
		}
		/*用户-添加*/
		function member_add (title, url, w, h) {
			layer_show(title, url, w, h);
		}
		
		//刷新页面
		function replaceByUrl(url){
			$(window.document).find("iframe[src='"+url+"']")[0].contentWindow.search();
		}
		
		//关闭弹窗
		function layerClose(childWindowName){
			var index = layer.getFrameIndex(childWindowName);
			layer.close(index);
		}
	</script>
	
	<script type="text/javascript">
	$(function () {
		$(".logout").click(function() {
			if (confirm('确定退出？')) {
				$.post("${ctx}/login/logout", null, function(result){
					if ("succ" == result) {
						top.location.href = "${ctx}/login/toLogin";
					} else {
						alert(result);
					}
				});
			}
		});
	});
</script>
</body>
</html>